from typing import Optional, List
from pydantic import BaseModel

class UserBase(BaseModel):
    id: Optional[int]
    userName: str
    name: Optional[str]
    apartment: Optional[str]
    authority: Optional[str]
    is_active: Optional[str]

class UserDataBase(UserBase):
    passWord: str


class Token(UserBase):
    access_token: str
    # refresh_token: str